#ifndef DATAMANAGER_H
#define DATAMANAGER_H

#include "datamanager_global.h"

#include "freyabaseaction.h"

class SqlDatabase;
class DataManager : public FreyaBaseAction
{
public:
    DataManager();
    ~DataManager();

protected:
    void Execute(const FreyaData data);

private:
    void InitConfig();
    void InitDataBase();
    void ModuleLaunch();
    void ModuleQuit();

    void DataModuleOperate(const FreyaData data);

    void LogRecord(const FreyaData data);

private:
    SqlDatabase       *m_DataBase;
};

#endif // DATAMANAGER_H
